package com.thug.managers;

import com.thug.engine.EntityManager;
import com.thug.engine.SceneManager;
import com.thug.entities.Gold;

public class GoldManager extends EntityManager<Gold> {

	
	public GoldManager(SceneManager s) {
		super(s);
	}

	@Override
	public void onLoad() {
		for(int i = 0; i < mEntities.size(); i++) {
			Gold gold = mEntities.get(i);
			gold.init();
		}
		
	}


	@Override
	public void update(float elapsedTime) {
		for(int i = 0; i < mEntities.size(); i++) {
			Gold gold = mEntities.get(i);
			gold.update(elapsedTime);
		}
		
	}

	@Override
	public void onDestroy() {
		for(Gold gold : mEntities) {
			gold.dispose();
		}
		mEntities.clear();
	}

}
